public class test {
    public static void main(String[] args) {
        Dog dog = new Dog();
    }
}
class Dog extends Animal{
    private int d = 1;
    public void eat(){
        System.out.println("dog "+d);
    }
}
class Animal{
    public Animal(){
        eat();
    }
    public void eat(){
        System.out.println("Aniaml");
    }
}

